package day03;

public class OperDemo1 {
    public static void main(String[] args) {
        int a = 3,b = 3;
        a++;
        ++b;
        System.out.println(a);
        System.out.println(b);


        int c = 3,d = 3;
        int e = c++;
        int g = c++;
        int h = ++c;
        int f = ++d;
        System.out.println(c);//4
        System.out.println(e);//3
        System.out.println(d);//4
        System.out.println(f);//4
        System.out.println(g);
        System.out.println(h);

        int i = 5,j = 5;
        int k = i--;
        int m = i--;
        int n = --i;
        int l = --j;
        System.out.println("自减");
        System.out.println(i);//4
        System.out.println(j);//4
        System.out.println(k);//5
        System.out.println(l);//4
        System.out.println(m);//4
        System.out.println(n);//2
    }
}
